Optimal. Leaf size=91 \[ \frac{\tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{\csc ^3(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{3 f}+\frac{2 \csc (e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.115127, antiderivative size = 91, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.154, Rules used = {3176, 3207, 2590, 270} \[ \frac{\tan (e+f x) \sqrt{a \cos ^2(e+f x)}}{f}-\frac{\csc ^3(e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{3 f}+\frac{2 \csc (e+f x) \sec (e+f x) \sqrt{a \cos ^2(e+f x)}}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3176
Rule 3207
Rule 2590
Rule 270
Rubi steps
\begin{align*} \int \cot ^4(e+f x) \sqrt{a-a \sin ^2(e+f x)} \, dx &=\int \sqrt{a \cos ^2(e+f x)} \cot ^4(e+f x) \, dx\\ &=\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \int \cos (e+f x) \cot ^4(e+f x) \, dx\\ &=-\frac{\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \frac{\left (1-x^2\right )^2}{x^4} \, dx,x,-\sin (e+f x)\right )}{f}\\ &=-\frac{\left (\sqrt{a \cos ^2(e+f x)} \sec (e+f x)\right ) \operatorname{Subst}\left (\int \left (1+\frac{1}{x^4}-\frac{2}{x^2}\right ) \, dx,x,-\sin (e+f x)\right )}{f}\\ &=\frac{2 \sqrt{a \cos ^2(e+f x)} \csc (e+f x) \sec (e+f x)}{f}-\frac{\sqrt{a \cos ^2(e+f x)} \csc ^3(e+f x) \sec (e+f x)}{3 f}+\frac{\sqrt{a \cos ^2(e+f x)} \tan (e+f x)}{f}\\ \end{align*}
Mathematica [A] time = 0.0759273, size = 47, normalized size = 0.52 \[ -\frac{\tan (e+f x) \left (\csc ^4(e+f x)-6 \csc ^2(e+f x)-3\right ) \sqrt{a \cos ^2(e+f x)}}{3 f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.624, size = 55, normalized size = 0.6 \begin{align*}{\frac{\cos \left ( fx+e \right ) a \left ( 3\, \left ( \sin \left ( fx+e \right ) \right ) ^{4}+6\, \left ( \sin \left ( fx+e \right ) \right ) ^{2}-1 \right ) }{3\, \left ( \sin \left ( fx+e \right ) \right ) ^{3}f}{\frac{1}{\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.56029, size = 77, normalized size = 0.85 \begin{align*} \frac{8 \, \sqrt{a} \tan \left (f x + e\right )^{4} + 4 \, \sqrt{a} \tan \left (f x + e\right )^{2} - \sqrt{a}}{3 \, \sqrt{\tan \left (f x + e\right )^{2} + 1} f \tan \left (f x + e\right )^{3}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.65905, size = 166, normalized size = 1.82 \begin{align*} -\frac{{\left (3 \, \cos \left (f x + e\right )^{4} - 12 \, \cos \left (f x + e\right )^{2} + 8\right )} \sqrt{a \cos \left (f x + e\right )^{2}}}{3 \,{\left (f \cos \left (f x + e\right )^{3} - f \cos \left (f x + e\right )\right )} \sin \left (f x + e\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- a \left (\sin{\left (e + f x \right )} - 1\right ) \left (\sin{\left (e + f x \right )} + 1\right )} \cot ^{4}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.2405, size = 178, normalized size = 1.96 \begin{align*} \frac{{\left ({\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )}^{3} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - 24 \,{\left (\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )\right )} \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right ) - \frac{48 \, \mathrm{sgn}\left (\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )^{4} - 1\right )}{\frac{1}{\tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )} + \tan \left (\frac{1}{2} \, f x + \frac{1}{2} \, e\right )}\right )} \sqrt{a}}{24 \, f} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]